package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-03-15
 */
public class Menu3 extends Model<Menu3> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 名称
     */
    private String name;

    /**
     * 优先级
     */
    private Integer priority;

    /**
     * 状态 1正常 2停用
     */
    private Integer status;

    /**
     * 菜单对应地址
     */
    private String url;

    private Date time;

    /**
     * 所属2级菜单id
     */
    private String menu2Id;

    private String icon;

    /**
     * _self,_blank,菜单打开页面方式
     */
    private String target;

    /**
     * 对应权限表的group_name
     */
    private String groupName;

    public Menu3() {
    }

    public Menu3(String id, String name, Integer priority, Integer status, String url, Date time, String menu2Id, String icon, String target, String groupName) {
        this.id = id;
        this.name = name;
        this.priority = priority;
        this.status = status;
        this.url = url;
        this.time = time;
        this.menu2Id = menu2Id;
        this.icon = icon;
        this.target = target;
        this.groupName = groupName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getMenu2Id() {
        return menu2Id;
    }

    public void setMenu2Id(String menu2Id) {
        this.menu2Id = menu2Id;
    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }
    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Menu3{" +
            "id=" + id +
            ", name=" + name +
            ", priority=" + priority +
            ", status=" + status +
            ", url=" + url +
            ", time=" + time +
            ", menu2Id=" + menu2Id +
            ", icon=" + icon +
            ", target=" + target +
            ", groupName=" + groupName +
        "}";
    }
}
